//
//  PictureModel.m
//  Tang
//
//  Created by lanou on 15/12/7.
//  Copyright © 2015年 352324497@qq.com. All rights reserved.
//

#import "PictureModel.h"

@implementation PictureModel
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"width"])
    {
        [self setValue:value forKey:@"w"];
    }
    else if ([key isEqualToString:@"url"])
    {
        [self setValue:value forKey:@"p"];
        
    }
    else if ([key isEqualToString:@"height"])
    {
        [self setValue:value forKey:@"h"];
    }
    else if ([key isEqualToString:@"pic"])
    {
        [self setValue:value forKey:@"p"];
    }
}
@end
